<!DOCTYPE html>
<html lang="en" class="bg-dark">
<head>
<meta charset="utf-8" />
<title>Notebook | Web Application</title>
<meta name="description" content="app, web app, responsive, admin dashboard, admin, flat, flat ui, ui kit, off screen nav" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<link href="plugs/templet/notebook/app.v2.css" rel="stylesheet">
<script src="plugs/templet/notebook/app.v2.js"></script><!-- 《后台模板notebook》js (已融入了jquery)-->
<script type="text/javascript">
	function loginSubmit(){
		var username = $("#username").val();
		var password = $("#password").val();
		if(username==""){
			$("#login_info").html("用户名不能为空！");
			$("#username").focus();
		}else if(password==""){
			$("#login_info").html("密码不能为空！");
			$("#password").focus();
		}else{
			$.post("loginSubmit",{
				username:username,
				password:password
			},function(json){
				if(json.code=="0"){
					top.location.href = "/index.html";
				}else{
					$("#login_info").html(json.msg);
				}
			});
		}
	}
</script>
</head>
<body>
<section id="content" class="m-t-lg wrapper-md animated fadeInUp">
  <div class="container aside-xxl"> <a class="navbar-brand block">文件资源管理</a>
    <section class="panel panel-default bg-white m-t-lg">
      <header class="panel-heading text-center"> <strong>登录</strong> </header>
      <div class="panel-body wrapper-lg">
        <div class="form-group">
          <label class="control-label">用户名</label>
          <input id="username" name="username" type="text" placeholder="用户名" class="form-control input-lg">
        </div>
        <div class="form-group">
          <label class="control-label">密码</label>
          <input id="password" name="password" type="password" placeholder="密码" class="form-control input-lg">
        </div>
        <div class="form-group" align="center">
          <label id="login_info" class="control-label" style="color:red;"></label>
        </div>
        <div class="line line-dashed"></div>
        <a onclick="loginSubmit();" class="btn btn-info btn-rounded btn-block">登录</a>
        <div class="line line-dashed"></div>
      </div>
    </section>
  </div>
</section>
<!-- footer -->
<footer id="footer">
  <div class="text-center padder">
    <p> <small>webdesktop.hmyuan.com<br>
      &copy; 2017</small> </p>
  </div>
</footer>
</body>
</html>
